package com.jacken.mars.entity.base;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wq
 * @date 2020/2/19
 **/
@Data
public class OauthToken implements Serializable {

    /**
     * token
     */
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * 过期时间
     */
    @JsonProperty("expires_in")
    private Long expiresIn;

    /**
     * 授权域 mall,boss,merchant
     */
    private String client;

    /**
     * 刷新token
     */
    @JsonProperty("refresh_token")
    private String refreshToken;

    /**
     * 刷新token的过期时间
     */
    @JsonProperty("refresh_expire_in")
    private Long refreshExpireIn;
}
